import json from 'rollup-plugin-json';

export default {
  input: 'src/core/index.js',
  output: {
    file: 'dist/library.js',
    name: 'twaver',
    format: 'es', // 'es', 'cjs', amd /  es6 / iife / umd,// https://www.cnblogs.com/vajoy/p/5518442.html
  },
  external: [
    'ext',
    'gl-matrix',
  ],
  plugins: [
    json(),
  ],
};